package com.wmb.service.impl;

import com.wmb.service.IMovable;
import org.springframework.stereotype.Service;
//实现接口，定义具体规范

//类注入
@Service("bus")
public class Bus implements IMovable {
    //实现行为
    @Override
    public void moving() {
        System.out.println("写日志Bus");
        System.out.println("Bus is moving....");
    }
}
